import request from '@/request/index.js'

const base = 'base' //http://101.42.107.47:30020文档
const zhpt = 'zhpt' //http://101.42.107.47:30018文档

//修改密码
export const editPasswordApi = (data) => {
    return request({
        url: `/api/${base}/api/edit/password/${data.oldpassword}/${data.password}`,
        method: 'PUT',
    })
}

//获取我的消息列表
export const getMyInfoListApi = (params) => {
    return request({
        url: `/api/${zhpt}/message/list`,
        method: 'GET',
        params,
    })
}

//用户阅读统计
export const getUserReadNumApi = (params) => {
    return request({
        url: `/api/${zhpt}/message/custom/readStatus/user`,
        method: 'GET',
    })
}

//更新消息阅读状态
export const changeReadStatusApi = (params) => {
    return request({
        url: `/api/${zhpt}/message/read`,
        method: 'GET',
        params,
    })
}